const express = require('express')
const router = express.Router()
const song_handler=require("../router_handler/song")

// 1. 导入验证表单数据的中间件
const expressJoi = require('@escook/express-joi')
// 2. 导入需要的验证规则对象
const { song_list_schema,song_info_schema } = require('../schema/song')


router.post("/list",expressJoi(song_list_schema), song_handler.getList)
router.post("/info/:id",expressJoi(song_info_schema), song_handler.getInfo)
module.exports = router